Skip to content

issue 2890 fix #39

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Conversation

PrakashDurlabhji
Copy link

No description provided.

@PrakashDurlabhji
Copy link
Author

@veshu @codeMinter can anyone please review this?

@@ -71,6 +71,8 @@ export default function Button({
onClick={onClick}
onMouseDown={onMouseDown}
type={type}
tabIndex={0}
aria-label={`${children}`}
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

aria-label must be a string. Children is a node (can be span/div/etc).

@@ -71,6 +71,8 @@ export default function Button({
onClick={onClick}
onMouseDown={onMouseDown}
type={type}
tabIndex={0}
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

again, I don't think it's necessary to force a "translation" of {0} to ="0" when you already know it will be 0. tabIndex="0" should be alright

@sexta13 sexta13 self-assigned this Jul 28, 2019
@PrakashDurlabhji PrakashDurlabhji changed the base branch from develop to qa-accessibility July 29, 2019 20:16
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants